package com.ruoyi.framework.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 会员对象 lf_members
 * 
 * @author ruoyi
 * @date 2020-07-24
 */
public class Members extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员Id */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;
    /** 推荐码 */
    @Excel(name = "推荐码")
    private String referralCode;
    /** 密码加盐 */
    @Excel(name = "密码加盐")
    private String salt;

    /** 推荐人 */
    @Excel(name = "推荐人")
    private String referrer;
    /** 团队人数 */
    @Excel(name = "团队人数")
    private Integer teamNum;
    /** 直推人数 */
    @Excel(name = "直推人数")
    private Integer pushNum;

    /**会员级别 */
    private transient PackageLevel packageLevel;
    /**会员级别Id */
    private  Long levelId;

    /** 推荐路径 */
    @Excel(name = "推荐路径")
    private String recommendPath;

    /** 冻结余额 */
    @Excel(name = "冻结余额")
    private BigDecimal freezeBalance;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setReferrer(String referrer) 
    {
        this.referrer = referrer;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getReferralCode() {
        return referralCode;
    }

    public Integer getTeamNum() {
        return teamNum;
    }

    public void setTeamNum(Integer teamNum) {
        this.teamNum = teamNum;
    }

    public Integer getPushNum() {
        return pushNum;
    }

    public void setPushNum(Integer pushNum) {
        this.pushNum = pushNum;
    }

    public void setReferralCode(String referralCode) {
        this.referralCode = referralCode;
    }

    public String getReferrer()
    {
        return referrer;
    }
    public void setRecommendPath(String recommendPath) 
    {
        this.recommendPath = recommendPath;
    }

    public String getRecommendPath() 
    {
        return recommendPath;
    }
    public void setFreezeBalance(BigDecimal freezeBalance) 
    {
        this.freezeBalance = freezeBalance;
    }

    public BigDecimal getFreezeBalance() 
    {
        return freezeBalance;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public PackageLevel getPackageLevel() {
        return packageLevel;
    }

    public void setPackageLevel(PackageLevel packageLevel) {
        this.packageLevel = packageLevel;
    }

    public Long getLevelId() {
        return levelId;
    }

    public void setLevelId(Long levelId) {
        this.levelId = levelId;
    }

    public Integer getState()
    {
        return state;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("referrer", getReferrer())
            .append("recommendPath", getRecommendPath())
            .append("freezeBalance", getFreezeBalance())
            .append("state", getState())
            .append("balance", getBalance())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
